package com.lkm.market2_0.m.steelyarddata;

import android.os.Handler;
import android.os.Looper;

import com.lkm.frame.otto.LinkBus;
import com.lkm.frame.otto.LinkBusEventFlag;
import com.lkm.frame.otto.ThreadEnforcer;
import com.lkm.market2_0.entity.SteelyardInfo;



public class OnSteelardInfoLoadEvent implements LinkBusEventFlag {

    

    public static void send(SteelyardInfo steelyardInfo){
        LinkBus.sendBroadcast(new OnSteelardInfoLoadEvent(steelyardInfo));
        LinkBus.sendBroadcast(new OnBreedChangeEvent(steelyardInfo.breedTo), new Handler(Looper.getMainLooper()));
    }

    private final SteelyardInfo steelyardInfo;

    private OnSteelardInfoLoadEvent(SteelyardInfo steelyardInfo) {
        this.steelyardInfo = steelyardInfo;
    }

    public SteelyardInfo getSteelyardInfo() {
        return steelyardInfo;
    }

    @Override
    public ThreadEnforcer getThreadEnforcer() {
        return ThreadEnforcer.ANY;
    }

    @Override
    public boolean isStickyBroadcast() {
        return false;
    }
}
